package com.rosh.rpc.client.boot;

import com.rosh.rpc.client.discovery.RpcServiceDiscovery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: rosh
 * @Date: 2022/6/14 00:05
 */
@Component
public class RpcClientRunner {


    @Autowired
    private RpcServiceDiscovery rpcServiceDiscovery;

    public void run() {
        //服务发现，获取根节点下所有子节点,每个节点代表一个服务
        rpcServiceDiscovery.serviceDiscovery();

    }
}
